<template>
	<view>
		<view class="title">{{notice.title}}</view>
		<view  class="content">
			<rich-text :nodes="notice.content"></rich-text>
		</view>
		<view class="time">{{notice.addtime}}</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				notice:{}
			}
		},
		onLoad(e) {
			this.notice = JSON.parse(e.data);
			console.log(JSON.stringify(this.notice))
		}
	}
</script>

<style>
	.title{font-weight: bold;font-size: 40upx;padding:20upx}
	.content{padding:20upx;}
	.time{text-align: right;color:#666;font-size: 25upx;marign-top:40upx;padding:20upx;}
</style>
